package com.shuwang.user.enums;

/**
 * Created by Administrator on 2017/6/5 0005.
 */
public enum SigninTypeEnums {
    user(233,"普通用户"),
    shop(666,"商铺用户"),
    administrator(888,"管理员");

    private final Integer value;
    private final String name;

    private SigninTypeEnums(Integer value, String name){
        this.value = value;
        this.name = name;
    }

    public Integer getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static SigninTypeEnums getByValue(int value ){
        for ( SigninTypeEnums operatorSigninTypeEnums : values() ){
            if( operatorSigninTypeEnums.getValue() == value ){
                return operatorSigninTypeEnums;
            }
        }
        return null;
    }
}
